package zj.com.activities;

import android.app.Activity;
import android.os.Bundle;

import cn.jpush.android.api.JPushInterface;
import zj.com.app.ZjApplication;

/**
 * Created by xi on 16/5/31.
 */
public abstract class BaseActivity extends Activity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        ZjApplication.getInstance().addActivity(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onResume() {
        super.onResume();

        JPushInterface.onResume(this);
    }

    @Override
    protected void onPause() {
        super.onPause();
        JPushInterface.onPause(this);

    }
}
